package com.xlhj.boot.sonarqube.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: liucaijing
 * @description: HelloController
 * @date: 2022/3/31 7:43
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    private static final Logger logger = LoggerFactory.getLogger(HelloController.class);

    @GetMapping("/world")
    public String hello() {
        logger.info("hello world!");
        return "hello world";
    }
}
